package com.admin.socketmultiplayer.adapter

import android.content.Context
import com.admin.kotlintest.base.AdapterHolder
import com.admin.kotlintest.base.CurrencyAdapter
import com.admin.socketmultiplayer.R
import com.admin.socketmultiplayer.bean.OptionType
import kotlinx.android.synthetic.main.layout_show_type_item.view.*

/**
 * Created by 吴昶 on 2018/5/14.
 */
class ShowTypeAdapter(context: Context,layout:Int,data:MutableList<OptionType>):CurrencyAdapter<OptionType>(context,layout,data){

    override fun convert(holder: AdapterHolder, item: OptionType, position: Int) {
        holder.setImageView(R.id.iv_type_header,item.header)
        holder.setTextViewText(R.id.tv_type_title,item.name)
        holder.setTextViewText(R.id.tv_type_synopsis,item.synopsis)
    }
}